package com.aaa.day1104.demo;

import java.util.function.BiPredicate;
import java.util.function.Predicate;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月04日9:12
 */
public class TestPredicate {
    public static void main(String[] args) {
        Predicate<String> predicate=t->t.length()>5;
        boolean aaaaa=predicate.test("aaaaa");
        System.out.println("aaaaa = " + aaaaa);

        BiPredicate<String,String>biPredicate=(t,u)->t.equals(u);
        boolean test=biPredicate.test("aaaa","bbbbbb");
        System.out.println("test = " + test);
    }
}
